import request from '@/utils/request'

// 查询教学计划信息列表
export function listTeachPlan(query) {
  return request({
    url: '/edu/teachPlan/list',
    method: 'get',
    params: query
  })
}

export function listAllTeachPlan(query) {
  return request({
    url: '/edu/teachPlan/listAll',
    method: 'get',
    params: query
  })
}

export function listTeachPlanByIds(query) {
  return request({
    url: '/edu/teachPlan/listByIds/' + query,
    method: 'get',
    //params: query
  })
}

// 查询教学计划信息详细
export function getTeachPlan(teachPlanId) {
  return request({
    url: '/edu/teachPlan/' + teachPlanId,
    method: 'get'
  })
}

// 新增教学计划信息
export function addTeachPlan(data) {
  return request({
    url: '/edu/teachPlan',
    method: 'post',
    data: data
  })
}

// 修改教学计划信息
export function updateTeachPlan(data) {
  return request({
    url: '/edu/teachPlan',
    method: 'put',
    data: data
  })
}

// 删除教学计划信息
export function delTeachPlan(teachPlanId) {
  return request({
    url: '/edu/teachPlan/' + teachPlanId,
    method: 'delete'
  })
}

// 导出教学计划信息
export function exportTeachPlan(query) {
  return request({
    url: '/edu/teachPlan/export',
    method: 'get',
    params: query
  })
}